package com.zsl.picture.controller;


import com.zsl.picture.model.Notes;
import com.zsl.picture.service.NotesService;
import com.zsl.picture.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  notes控制器
 * </p>
 *
 * @author zsl
 * @since 2022-01-14
 */
@RestController
@RequestMapping("/notes")
public class NotesController {
    @Autowired
    NotesService notesService;

    @PostMapping
    public R save(@RequestBody Notes notes){
        notesService.getBaseMapper().insert(notes);
        return R.ok();
    }

}
